package com.example.demo13zuulinvoker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * @author yawn
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients         // 使用feign客户端
@EnableCircuitBreaker       // hystrix 熔断器
@ServletComponentScan       // hystrix 缓存需要的context
public class Demo13ZuulInvokerApplication {

    public static void main(String[] args) {
        SpringApplication.run(Demo13ZuulInvokerApplication.class, args);
    }
}

